#!/bin/bash

# 构建Jar包
echo "Building SpringBoot application..."
mvn clean package

# 构建并启动容器
echo "Starting Docker container..."
docker-compose down && docker-compose up -d --build

echo "Deployment completed!"
echo "Access your application at: http://localhost:8080/hello"